<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/vue@next"></script>
</head>
<body>
    <div id="app">
        <p v-if="Math.random()>0.5">Now you see me</p>
        <p v-else>Now you don't</p>

        <div v-if="type === 'A'">A</div>
        <div v-else-if="type === 'B'">B</div>
        <div v-else-if="type === 'C'">C</div>
        <div v-else>D</div>

    </div>

    <script>
        const options = {
            data() {
                return {
                    type:'A'
                }
            },
        }
        const vm = Vue.createApp(options).mount('#app')
    </script>
</body>
</html>